package edu.hebeu.entity;

import java.io.Serializable;
import java.util.Date;

public class SearchUserResponse implements Serializable{
    private static final long serialVersionUID = -69234067482837803L;
    private int code;
    private String mes;
    private User user;
    public void setCode(int code) {
        this.code = code;
    }
    public int getCode() {
        return code;
    }

    public void setMes(String mes) {
        this.mes = mes;
    }
    public String getMes() {
        return mes;
    }

    public void setUser(User user) {
        this.user = user;
    }
    public User getUser() {
        return user;
    }

    @Override
    public String toString() {
        return "SearchUserResponse{" +
                "code=" + code +
                ", mes='" + mes + '\'' +
                ", user=" + user +
                '}';
    }

    public class User implements Serializable {
        private static final long serialVersionUID = -3836830090331964642L;
        private int id;
        private String username;
        private String password;
        private String name;
        private int sex;
        private Date birthday;
        private String tel;
        private String address;
        private long money;
        private int business;
        public void setId(int id) {
            this.id = id;
        }
        public int getId() {
            return id;
        }

        public void setUsername(String username) {
            this.username = username;
        }
        public String getUsername() {
            return username;
        }

        public void setPassword(String password) {
            this.password = password;
        }
        public String getPassword() {
            return password;
        }

        public void setName(String name) {
            this.name = name;
        }
        public String getName() {
            return name;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }
        public int getSex() {
            return sex;
        }

        public void setBirthday(Date birthday) {
            this.birthday = birthday;
        }
        public Date getBirthday() {
            return birthday;
        }

        public void setTel(String tel) {
            this.tel = tel;
        }
        public String getTel() {
            return tel;
        }

        public void setAddress(String address) {
            this.address = address;
        }
        public String getAddress() {
            return address;
        }

        public void setMoney(long money) {
            this.money = money;
        }
        public long getMoney() {
            return money;
        }

        public void setBusiness(int business) {
            this.business = business;
        }
        public int getBusiness() {
            return business;
        }

        @Override
        public String toString() {
            return "User{" +
                    "id=" + id +
                    ", username='" + username + '\'' +
                    ", password='" + password + '\'' +
                    ", name='" + name + '\'' +
                    ", sex=" + sex +
                    ", birthday=" + birthday +
                    ", tel='" + tel + '\'' +
                    ", address='" + address + '\'' +
                    ", money=" + money +
                    ", business=" + business +
                    '}';
        }
    }

}
